import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()


class User{
  User({this.username,this.password});

  String username;
  String password;

  User.empty();

  //不同的类使用不同的mixin即可
  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);
}